package io.github.talelin.latticy.repository;

import io.github.talelin.latticy.entity.CommonJob;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CommonJobRepository extends JpaRepository<CommonJob, Long> {

    Page<CommonJob> findByIsGettingOrderByCreateTimeDesc(Boolean isGetting, Pageable pageable);

    CommonJob findFirstById(Long id);
}
